package model;

import java.util.LinkedList;
import java.util.List;

public class NonTerminal extends Term {
	private LinkedList<Terminal> starters;
	private LinkedList<Terminal> followers;
	
	public NonTerminal(String term) {
		super(term);
		
		starters = new LinkedList<Terminal>();
		followers = new LinkedList<Terminal>();
	}
	
	public LinkedList<Terminal> getStarters() {
		return starters;
	}
	
	public void addStarter(Terminal terminal) {
		starters.add(terminal);
	}
	
	public void addStarters(List<Terminal> terminals) {
		starters.addAll(terminals);
	}
	
	public LinkedList<Terminal> getFollowers() {
		return followers;
	}
	
	public void addFollower(Terminal terminal) {
		followers.add(terminal);
	}
	
	public void addFollowers(List<Terminal> terminals) {
		followers.addAll(terminals);
	}
}
